<template >
    <div>
        数字:{{number}}
    </div>
    <button @click="addNumber">+1</button>
</template>
<script setup>
    import { ref } from 'vue'
    let number =ref(1)
    const addNumber=()=>{
        number.value++
    }

    
</script>
<style >
    
</style>